package org.budo.sms.service.api;

import java.util.Map;

import lombok.Getter;
import lombok.Setter;

/**
 * @author limingwei
 */
@Getter
@Setter
public class BudoSmsServiceWrapper implements BudoSmsService {
    private BudoSmsService budoSmsService;

    public String sendSms(String to, String template, Map<String, Object> parameters) {
        BudoSmsService _budoSmsService = this.getBudoSmsService();
        if (null == _budoSmsService) {
            throw new RuntimeException("#19 _budoSmsService=" + _budoSmsService + ", this=" + this);
        }

        return _budoSmsService.sendSms(to, template, parameters);
    }
}